<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>菜单</title>
    <link rel="stylesheet" type="text/css" href="../../themes/bootstrap/cetc54.ui.all.css">

</head>
<body>
<div id="contextMenu_test" style="border: 1px solid #000000; width: 500px;height: 500px;">右键菜单</div>
<div id="contextMenu"></div>
</body>
<script type="text/javascript" src="../../lib/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="../../release/cetc54.ui.all.js"></script>
<script>
    $(function () {
        $('#contextMenu').uiMenu({
            contextMenu : true,
            dataSource : 'menu.json'
        });
        $('#contextMenu_test').bind('contextmenu',function(e){
            $('#contextMenu').uiMenu('show',e);
        })
    });
</script>
</html>